package com.alipay.model;

/**
 * Created by sikongshu at 18/9/11
 */
public class ExceptionUtils {

    public static Throwable getRootCause(Throwable e) {
        if(org.apache.commons.lang.exception.ExceptionUtils.getRootCause(e) == null)
            return e;
        else
            return org.apache.commons.lang.exception.ExceptionUtils.getRootCause(e);
    }
}
